package org.dromara.report.order.domain.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 报表-订单查询条件对象 将所有订单查询相的条件写到该类型，用于使用mybaits时自动封装查询条件
 *
 * @author wdm
 * @date 2024-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ReportOrderQueryBo extends BaseEntity {

    /**
     * 门店ID
     */
    @NotNull(message = "门店ID不能为空", groups = { EditGroup.class })
    private Long storeId;

    /**
     * 门店名称
     */
    @NotBlank(message = "门店名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeName;

    /**
     * 消费时间
     */
    @NotNull(message = "消费时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date orderTime;


    /**
     * 查询时段
     */
    @NotNull(message = "查询时段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String queryTimeRange;


}

